<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>

<body>

</body>
<script>
  let a = [{
      name: "苏苏",
      age: 18
    },
    {
      name: "苏苏2",
      age: 18
    }
  ];
  let c = a.map(i => {
    return {
      name: i.name,
      disab: false
    }
  });
  console.log(c);
  let d = a.map(i => i.name)
  console.log(d);

  const B = () => {
    return new Promise((reslove, reject) => {
      setTimeout(() => {
        reslove('苏苏苏哇哈哈哈');
      }, 4000);
    });
  };
  const A = async () => {
    let BB = await B();
    console.log(BB)
  };

  A()
</script>

</html>